﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Styx;
using Styx.Combat.CombatRoutine;
using Styx.Helpers;
using Styx.Logic;
using Styx.Logic.Combat;
using Styx.Logic.Pathing;
using Styx.WoWInternals;
using Styx.WoWInternals.WoWObjects;
using HBPVPDruid.Misc;

namespace HBPVPDruid.Spells
{
    public static class ForceofNature
    {
        public const string SpellName = "Force of Nature";
        public static readonly int SpellDistance = 40;

        public static bool Pulse(WoWUnit Player)
        {
            // Quick Checks to return false
            if (Player.Distance > 40) return false;
            if (!SpellManager.CanCast(SpellName)) return false;

            Misc.Misc.CastLog(SpellName, Player.Name);
            SpellManager.Cast(SpellName);
            LegacySpellManager.ClickRemoteLocation(Player.Location);
            return true;
        }
    }
}
